<template>
	<view class="">
		<view class="resume_basics">
			<view class="Education_text">
				<text>工作经历</text><u-icon name="plus" color="#3E403F" size="28" style="margin-left: 15rpx;" @click="GoBasics"></u-icon>
			</view>
			<view class="Education_box"  v-if="!workData.length">
				<view class="work_hide">
					添加工作经历
				</view>
			</view>
			<view class="Education_box" v-if="workData.length"  v-for="(item,index) in workData" :key='index' @click="GoDisplay(index)">
				<view class="Education_xxname"> 
					{{item.gzjlgsmc||"公司名称"}}<u-icon name="arrow-right" color="#999999" size="25" style="margin-left: 15rpx;"></u-icon>
				</view>
				<view class="Education_info">
					{{item.gzjlzwmc||"职位"}}
				</view>
				<view class="Education_time">
					{{item.gzjlksrq||"开始时间"}} - {{item.gzjljsrq||"结束时间"}}
				</view>
				<view class="Education_zs">
					{{item.gzjlgzms||"工作描述"}}
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props: {
			workData: {
				type:  Array ,
				default () {
					return []
				}
			},
			colid: {
				type: String,
				required: true
			}
		},
		methods: {
		GoBasics() {
			this.$u.route('/pages/HomeLnner/ResumeSon/SonWorkExperience', {
				id: this.colid
			});
		},
		GoDisplay(index) {
			this.$u.route('/pages/HomeLnner/ResumeSon/SonWorkExperience', {
				id: this.colid,
				index: index
			});
		}
		}
	}
</script>

<style scoped lang="scss">
	@import "./resume.scss";
</style>
